package org.itzheng.ui.decoration;

import android.graphics.Color;

import org.itzheng.and.baseutils.ui.UIUtils;
import org.itzheng.and.recyclerview.decoration.DecorationManager;

import androidx.recyclerview.widget.RecyclerView;

/**
 * Title:<br>
 * Description: <br>
 *
 * @email ItZheng@ZoHo.com
 * Created by itzheng on 2017-11-7.
 */
public class DecorationUtils {


    public static RecyclerView.ItemDecoration getItemDecorationNoMargin() {
        RecyclerView.ItemDecoration decoration = DecorationManager.LinearLayoutManager.
                newItemDecoration(
                        org.itzheng.and.recyclerview.decoration.DecorationManager.ShowDivider.SHOW_DIVIDER_MIDDLE
                        , 1, Color.parseColor("#F7F7F7"));
        return decoration;
    }

    public static RecyclerView.ItemDecoration getItemDecorationMargin10DP() {
        RecyclerView.ItemDecoration decoration = DecorationManager.LinearLayoutManager.
                newItemDecoration(
                        org.itzheng.and.recyclerview.decoration.DecorationManager.ShowDivider.SHOW_DIVIDER_MIDDLE
                        , 1, Color.parseColor("#F7F7F7"), UIUtils.dip2px(10), 0, UIUtils.dip2px(10), 0);
        return decoration;
    }
}
